package com.qingke.listener;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;

public class TestServletContextAttributeListener implements ServletContextAttributeListener {

	@Override
	public void attributeAdded(ServletContextAttributeEvent event) {
		String name=event.getName();
		String value=event.getValue().toString();
		System.out.println("add>name:"+name+",value:"+value);
	}

	@Override
	public void attributeRemoved(ServletContextAttributeEvent event) {
		String name=event.getName();
		String value=event.getValue().toString();
		System.out.println("removed>name:"+name+",value:"+value);

	}

	@Override
	public void attributeReplaced(ServletContextAttributeEvent event) {
		String name=event.getName();
		String value=event.getValue().toString();
		System.out.println("replaced>name:"+name+",value:"+value);

	}

}
